#include "stm32f10x.h"      
#include "OLED.h"
#include "voice.h"

//实现表情变化，调节是进中断后

void Face_Config(void)
{
	if(Face_Mode == enum_attention)
	{	
		OLED_Clear();
		OLED_ShowImage(0,0,128,64,Face_stare);//瞪大眼
		OLED_Update();
	}
    else if (Face_Mode == enum_cry)
	{	
		OLED_Clear();
		OLED_ShowImage(0,0,128,64,Face_cry);//睡觉
		OLED_Update();
	}
    else if (Face_Mode == enum_sleep)
	{	
		OLED_Clear();
		OLED_ShowImage(0,0,128,64,Face_sleep);//睡觉
		OLED_Update();
	}
	else if (Face_Mode == enum_fall)
	{
		OLED_Clear();
		OLED_ShowImage(0,0,128,64,Face_very_happy);//非常快乐
		OLED_Update();
	}
	else if( Face_Mode == enum_squat)
	{
		OLED_Clear();
		OLED_ShowImage(0,0,128,64,Face_happy);//快乐
		OLED_Update();
	}
	else if(Face_Mode == enum_wag_tail)
	{
		OLED_Clear();
		OLED_ShowImage(0,0,128,64,Face_wag_tail);
		OLED_Update();
	}
	else if(Face_Mode == enum_swing)
	{
		OLED_Clear();
		OLED_ShowImage(0,0,128,64,Face_mania);//狂热
		OLED_Update();
	}
	else if (Face_Mode == enum_handshake)
	{
		OLED_Clear();
		OLED_ShowImage(0,0,128,64,Face_hello);//打招呼
		OLED_Update();
	}
	else if( Face_Mode == enum_sit)
	{
		OLED_Clear();
		OLED_ShowImage(0,0,128,64,Face_happy);//快乐
		OLED_Update();
	}

	else if (Face_Mode == enum_forward)
	{
		OLED_Clear();
		OLED_ShowImage(0,0,128,64,Face_up);
		OLED_Update();
	}
	else if (Face_Mode == enum_retreat)
	{
		OLED_Clear();
		OLED_ShowImage(0,0,128,64,Face_down);
		OLED_Update();
	}
	else if (Face_Mode == enum_turn_left)
	{
		OLED_Clear();
		OLED_ShowImage(0,0,128,64,Face_left);
		OLED_Update();
	}
	else if (Face_Mode == enum_turn_right)
	{
		OLED_Clear();
		OLED_ShowImage(0,0,128,64,Face_right);
		OLED_Update();
	}
	else if (Face_Mode == enum_jump_up)
	{
		OLED_Clear();
		OLED_ShowImage(0,0,128,64,Face_jump_up);
		OLED_Update();
	}
	else if (Face_Mode == enum_jump_down)
	{
		OLED_Clear();
		OLED_ShowImage(0,0,128,64,Face_jump_down);
		OLED_Update();
	}

}
